﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Artech.EnterLibExt.ExceptionHandling
{
    /// <summary>
    /// All of exceptio handler filter, which used to determine the concrete exceptio handler list should be slected based on the given exception, must implement this interface.
    /// </summary>
    public interface IExceptionFilter
    {
        /// <summary>
        /// Check if the give exception match the exception handler filter.
        /// </summary>
        /// <param name="ex"></param>
        /// <returns>A <see cref="bool"/> value indicating whether the given exception match the filter.</returns>
        bool Match(Exception ex);
    }
}
